#ifndef ACTIVECODERESPONSE_H
#define ACTIVECODERESPONSE_H

#include "network/networkjsonresponse.h"

#include <QObject>

class ActiveCodeResponse : public Network::JSONResponse
{
    Q_OBJECT
public:
    ActiveCodeResponse(QObject *parent = 0);

    inline int error() const {
        return m_error;
    }

protected slots:
    void onNotifyError(int error);

private:
    void parse(const QVariant &data);

    int m_error;
};

#endif // ACTIVECODERESPONSE_H
